package chapter03;

class khor{
    private String name;
    private int age;
    public khor(String n,int a){
        name=n;
        age=a;
    }
    public void read() {
        System.out.println("大家好,我是"+name+",年龄"+age);
    }
}
public class Example06 {
    public static void main(String[] args) {
        khor stu=new khor("张三",18);
        stu.read();
    }
}
